@if "%~1"=="" goto :badend
@echo "%~d0%~p0"
@echo "%~f1\Modules"
mklink /j "%~f1\Modules\MediaGarden" "%~d0%~p0MediaGarden"
mklink /j "%~f1\Modules\MediaGarden.Images" "%~d0%~p0MediaGarden.Images"
mklink /j "%~f1\Modules\MediaGarden.ImageResizer" "%~d0%~p0MediaGarden.ImageResizer"
mklink /j "%~f1\Modules\MediaGarden.Videos" "%~d0%~p0MediaGarden.Videos"
mklink /j "%~f1\Modules\MediaGarden.Audio" "%~d0%~p0MediaGarden.Audio"
mklink /j "%~f1\Modules\MediaGarden.Playlists" "%~d0%~p0MediaGarden.Playlists"
mklink /j "%~f1\Modules\MediaGarden.Playlists.Mechanical" "%~d0%~p0MediaGarden.Playlists.Mechanical"
mklink /j "%~f1\Modules\MediaGarden.Players.FlowPlayer" "%~d0%~p0MediaGarden.Players.FlowPlayer"
mklink /j "%~f1\Modules\MediaGarden.Documents" "%~d0%~p0MediaGarden.Documents"
goto :end

:badend
@echo This will create symlinks for the MediaGarden projects into your Orchard Modules folder.
@echo It has to be run from the command line with Administrative permissions.
@echo "Syntax: CreateSymbolicLinks <path-to-Orchard.Web>"
:end
pause